package com.ruoyi.inspection.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.inspection.mapper.TPeoplePlacesMapper;
import com.ruoyi.inspection.domain.TPeoplePlaces;
import com.ruoyi.inspection.service.ITPeoplePlacesService;

/**
 * 巡检人员-地点关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
@Service
public class TPeoplePlacesServiceImpl implements ITPeoplePlacesService 
{
    @Autowired
    private TPeoplePlacesMapper tPeoplePlacesMapper;

    /**
     * 查询巡检人员-地点关联
     * 
     * @param id 巡检人员-地点关联主键
     * @return 巡检人员-地点关联
     */
    @Override
    public TPeoplePlaces selectTPeoplePlacesById(String id)
    {
        return tPeoplePlacesMapper.selectTPeoplePlacesById(id);
    }

    /**
     * 查询巡检人员-地点关联列表
     * 
     * @param tPeoplePlaces 巡检人员-地点关联
     * @return 巡检人员-地点关联
     */
    @Override
    public List<TPeoplePlaces> selectTPeoplePlacesList(TPeoplePlaces tPeoplePlaces)
    {
        return tPeoplePlacesMapper.selectTPeoplePlacesList(tPeoplePlaces);
    }

    /**
     * 新增巡检人员-地点关联
     * 
     * @param tPeoplePlaces 巡检人员-地点关联
     * @return 结果
     */
    @Override
    public int insertTPeoplePlaces(TPeoplePlaces tPeoplePlaces)
    {
        return tPeoplePlacesMapper.insertTPeoplePlaces(tPeoplePlaces);
    }

    /**
     * 修改巡检人员-地点关联
     * 
     * @param tPeoplePlaces 巡检人员-地点关联
     * @return 结果
     */
    @Override
    public int updateTPeoplePlaces(TPeoplePlaces tPeoplePlaces)
    {
        return tPeoplePlacesMapper.updateTPeoplePlaces(tPeoplePlaces);
    }

    /**
     * 批量删除巡检人员-地点关联
     * 
     * @param ids 需要删除的巡检人员-地点关联主键
     * @return 结果
     */
    @Override
    public int deleteTPeoplePlacesByIds(String[] ids)
    {
        return tPeoplePlacesMapper.deleteTPeoplePlacesByIds(ids);
    }

    /**
     * 删除巡检人员-地点关联信息
     * 
     * @param id 巡检人员-地点关联主键
     * @return 结果
     */
    @Override
    public int deleteTPeoplePlacesById(String id)
    {
        return tPeoplePlacesMapper.deleteTPeoplePlacesById(id);
    }
}
